import { BeanType } from "./BeanType"

export class BeanDefinition {
  public beanType: BeanType
  public id: string
  public clazz: any
  public args: Array<any>
  public isSingleton: boolean
  public dependencies: Array<BeanDefinition>

  constructor(beanType: BeanType, id: string, clazz: any, args: Array<any> = null, isSingleton = true) {
    this.beanType = beanType
    this.id = id
    this.clazz = clazz
    this.args = args
    this.isSingleton = isSingleton
  }

}
